import axios from '@/libs/api.request'
// 商户号管理列表
export const apiPaymerchantList = data => {
    return axios.request({
      url: '/paymerchant/list',
      method: 'post',
      data
    })
  }

  // 详情
export const apiPaymerchantInfo = data => {
  return axios.request({
    url: `paymerchant/info/${data.id}`,
    method: 'post',
    data
  })
}
//创建商户号
export const apiPaymerchantSave = data => {
  return axios.request({
    url: '/paymerchant/save',
    method: 'post',
    data
  })
}
//修改商户号
export const apiPaymerchantUpdate = data => {
  return axios.request({
    url: '/paymerchant/update',
    method: 'post',
    data
  })
}
//修改商户号
export const apiPaymerchantDelete = data => {
  return axios.request({
    url: '/paymerchant/delete',
    method: 'post',
    data
  })
}